# -*- conding:UTF-8 -*-

'''
@ Project: P7_project
@ File: celery.py
@ Author: 罗婷
@ Date：2022/5/27 16:49
 配置celery 放入要执行的任务
'''
from celery import Celery

# include =[] 元素是任务 文件名  任务队列
# broker 存放任务  backend存放任务执行结果
app = Celery('myWorker', broker='redis://:@127.0.0.1:6379/5',
             backend='redis://:@127.0.0.1:6379/6')


app.autodiscover_tasks(['common.celery_tasks.send_sms_code'])






















